package com.qilin.hscs.util;

import java.util.Random;

/**
 * Created by 10188 on 2018/5/3.
 */
public class SMSCodeUtil {

    public static String getCode() {
        String code = "";
        String codes[] = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"};
        Random r = new Random();
        for (int i = 0; i < 6; i++) {
            code += codes[r.nextInt(10)];
        }
        return code;
    }
}
